module.exports = [{
  url: '/incrementCoverage/commit/list',
  type: 'get',
  response: _ => {
    const xhr = new XMLHttpRequest()
    const okStatus = document.location.protocol === 'file' ? 0 : 200
    xhr.open('GET', '/demo.txt', false)
    xhr.overrideMimeType('text/html;charset=utf-8')
    xhr.send(null)
    var data = []
    if (xhr.status === okStatus) {
      data = JSON.parse(xhr.responseText)
    }
    return {
      code: 20000,
      data: data
    }
  }
}]
